// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
// webpack会自动帮你找.vue .js 文件
import router from './router'
import fastClick from 'fastclick'
// 什么是路由:路由就是根据不同的网址返回不同的内容给用户
import 'styles/reset.css'
import 'styles/border.css'
import 'styles/iconfont.css'
// 这边styles表示src/assests/styles 在build/webpack.base.conf.js中可以自定义
import VueAwesomeSwiper from 'vue-awesome-swiper'
import store from './store/index.js'
import 'swiper/dist/css/swiper.css'

Vue.config.productionTip = false
Vue.use(VueAwesomeSwiper)

// 使用fastClick解决点击延迟
fastClick.attach(document.body)

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  store,
  // router:router
  components: { App },
  // es6省略语法{ App:App } App局部组件
  template: '<App/>'
})
